package com.lagou.service;

import com.github.pagehelper.PageInfo;
import com.lagou.common.ServerResponse;
import com.lagou.model.User;

public interface IuserService {
    //用户登录
    ServerResponse<User> login(String username, String password);

    ServerResponse<PageInfo> getUsers(Integer pageNum, Integer pageSize);

    ServerResponse<String> add(User user);

    ServerResponse<String> deleteByPrimary(int id);

    ServerResponse<String> edit(User user);

    ServerResponse<User> findById(int id);
}
